package com.sikaryofficial.workbench.domain.mapping;

import com.sikaryofficial.workbench.domain.dto.resp.goods.GoodsDescDTO;
import com.sikaryofficial.workbench.domain.entity.GoodsDesc;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface GoodsDescMapping {

    GoodsDescMapping INSTANCE = Mappers.getMapper(GoodsDescMapping.class);

    List<GoodsDescDTO> coverToDTOList(List<GoodsDesc> goodsDescList);

    GoodsDescDTO coverToDTO(GoodsDesc goods);
}
